# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=seahorse
pkgver=3.36.2
pkgrel=0
pkgdesc="GNOME application for managing PGP keys."
url="https://projects.gnome.org/seahorse/"
arch="all !s390x !mips !mips64" # limited by libhandy
license="GPL-2.0-or-later"
depends="openssh dconf gnome-keyring"
makedepends="vala libxml2-utils
	yelp-tools intltool itstool gpgme-dev libsoup-dev
	libsm-dev libsecret-dev gobject-introspection-dev
	gtk+3.0-dev gcr-dev glib-dev meson libhandy-dev
	cmake libpwquality-dev openldap-dev avahi-dev"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/seahorse/${pkgver%.*}/seahorse-$pkgver.tar.xz"

build() {
	meson --prefix=/usr --buildtype=plain builddir
	ninja -C builddir
}

check() {
	ninja -C builddir test
}

package() {
	DESTDIR="$pkgdir" meson install -C builddir
}

sha512sums="6a0cb7847fe9917d6d6da31f9b81a4737e425d451fc80604d8e3deb9fa57798f04aa577dae68bc156a15743975f74fbde5ff06a0b05b34228bdc9ef2539b6451  seahorse-3.36.2.tar.xz"
